package org.apache.servicecomb.fence.resource;

import io.vertx.core.Vertx;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class VertxRunner implements CommandLineRunner {

    @Autowired
    private MainVerticle mainVerticle;
    @Override
    public void run(String... args) throws Exception {
        Vertx vertx = Vertx.vertx();
        vertx.deployVerticle(mainVerticle);

    }
}
